Skip to content

Method: createMove(IC4Player, IC4Position)

1: package de.fhdw.gaming.ipspiel23.c4.moves.impl;
2:
3: import de.fhdw.gaming.ipspiel23.c4.moves.factory.IC4MoveFactory;
4: import de.fhdw.gaming.ipspiel23.c4.moves.IC4Move;
5: import de.fhdw.gaming.ipspiel23.c4.domain.IC4Position;
6: import de.fhdw.gaming.ipspiel23.c4.domain.IC4Player;
7:
8: /**
9: * The default implementation of {@link IC4MoveFactory}.
10: */
11: public class C4DefaultMoveFactory implements IC4MoveFactory {
12:
13: @Override
14: public IC4Move createMove(final IC4Player player, final IC4Position position) {
15: return new C4Move(player, position);
16: }
17:
18: @Override
19: public IC4Move createMove(final IC4Player player, final int row, final int column) {
20: return new C4Move(player, row, column);
21: }
22: }